﻿using System;

namespace Moe.ECamel.Common.Entities
{
	public partial class MailMessage
	{
		public MailMessage(Customer customer, DateTime sentOn, String subject, String body)
			: this()
		{
			this.UserId = customer.User.UserId;
			this.ToAddress = customer.User.EmailAddress;
			this.SentOn = sentOn;
			this.Subject = subject;
			this.Body = customer.User.FullName + " שלום, " + Environment.NewLine + Environment.NewLine +
				body + Environment.NewLine + Environment.NewLine +
				"בברכה, " + Environment.NewLine + Environment.NewLine +
				"ספריית " + customer.Library.LibraryName;
		}
	}
}
